<%@ page language="java" import="java.util.*,com.fescoservice.model.*" pageEncoding="UTF-8"%>

<%
	String langfilename = "/resources/message";
	String serchOptionSel =  request.getAttribute("SerchOptionSel")==null?"":(String)request.getAttribute("SerchOptionSel");
	String serchOptionValue =  request.getAttribute("SerchOptionValueSel")==null?"":(String)request.getAttribute("SerchOptionValueSel");
	String custId =  request.getAttribute("custId")==null?"":(String)request.getAttribute("custId");	
	Application apply =  (Application)request.getAttribute("application");


%>
<%@include file="../common/LocaleManager.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Fesco Service</title>
		<link rel="stylesheet" href="<%=path%>/js/jquery/themes/redmond/jquery.ui.all.css">
		<script src="<%=path%>/js/jquery/jquery-1.5.1.js"></script>
		<script src="<%=path%>/js/FormCheck.js"></script>
		<script src="<%=path%>/js/common.js"></script>
	    <script src="<%=path%>/js/resources_zh_CN.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.datepicker.js"></script>			
		<script src="<%=path%>/js/jquery/external/jquery.bgiframe-2.1.2.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.widget.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.datepicker.js"></script>	
		<script src="<%=path%>/js/jquery/ui/jquery.ui.mouse.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.button.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.draggable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.position.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.ui.resizable.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.core.js"></script>
		<script src="<%=path%>/js/jquery/ui/jquery.effects.slide.js"></script>
		<link rel="stylesheet" href="<%=path%>/css/admin.css">
	
		<style type="text/css">
		
		</style>
		<script type="text/javascript">
			$(function() {
				$("#btnBack").button().click(function() {
					document.forms.mainForm.action = '<%=path%>/action/Customer.htm?cmd=viewCustomer';	
					//document.forms.mainForm.type.value=""
					document.forms.mainForm.submit();		
				});

			});
			


		</script>
	</head>
	<body>
		
		<div class="wrapContent">	
			<div class="ui-widget">	
				<div class="ui-widget-header">
					<%=resource.getString("FS_T_VIEW")%><%=resource.getString("FS_T_APPLICATION")%>
				</div>
				<div class="ui-widget-content operatorForm">
					<form name="mainForm" method="post">
					<table>
						<tr ><td width="15%"  class="operTR0" >						
							<label for="applyKey">
								<%=resource.getString("FS_T_APPLICATION_APPLY_KEY")%>
							</label>
							</td>
							<td width = "35%" class="operTR1"> 
							<input type="hidden" name="custId" class=" ui-corner-all" value="<%=apply.getCustId() %>" />	

							<%if("A".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_AUTH")%>
							<%}else if("B".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_VISA_INVITATION")%>
							<%}else if("C".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK")%>
							<%}else if("D".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_LIVE_AUTH")%>
							<%}else if("E".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_WORK_DELAY")%>
							<%}else if("F".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_DRIVE")%>
							<%}else if("G".equals(apply.getApplyKey())){%>
								<%=resource.getString("FS_T_APPLICATION_KEY_ABORD")%>
							<%}	%>			
						</td>
						<td width="15%"  class="operTR0" >			
							<label for="finifhDate">
								<%=resource.getString("FS_T_APPLICATION_FINISH_DATE")%>
							</label>
							</td>
							<td  width= "35%" class="operTR1"> 
							<input type="hidden" name="SerchOptionSel" class=" ui-corner-all" value="<%=serchOptionSel %>" />	
							<input type="hidden" name="SerchOptionValueSel" class=" ui-corner-all" value="<%=serchOptionValue %>" />
							<%=apply.getFinifhDate() %>
						</td>
						</tr>						
						<tr><td>			
							<label for="fee">
								<%=resource.getString("FS_T_APPLICATION_FEE")%>
							</label>
							</td>
							<td>
							<%=apply.getFee() %>
						</td>

						<td>				
							<label for="serviceCost">
								<%=resource.getString("FS_T_APPLICATION_SERVICE_COST")%>
							</label></td><td>
							<%=apply.getServiceCost()%>						
						</td>
						</tr>
						<tr><td>						
							<label for="preDate">
								<%=resource.getString("FS_T_APPLICATION_PRE_DATE")%>
							</label>
							</td><td>
								<%=apply.getPreDate()%>
							
						</td><td>	
							<label for="payDate">
								<%=resource.getString("FS_T_APPLICATION_PAY_DATE")%>
							</label>
						</td><td>
							<%=apply.getPayDate()%>
						</td></tr>
						
						<tr><td>						
							<label for="hrId">
								<%=resource.getString("FS_T_APPLICATION_HR_ID")%>
							</label></td><td>
							<%=apply.getHrId()%>
						</td><td>						
							<label for="serviceNumber">
								<%=resource.getString("FS_T_APPLICATION_SERVICE_NUMBER")%>
							</label></td><td>
							<%=apply.getServiceNumber()%>
						</td></tr>
						<tr><td>						
							<label for="applyType">
								<%=resource.getString("FS_T_APPLICATION_APPLY_TYPE")%>
							</label></td><td>							
							
							<%if("1".equals(apply.getApplyType())){%>
								<%=resource.getString("FS_T_APPLY_FIRST")%>
							<%}else if("2".equals(apply.getApplyType())){%>
								<%=resource.getString("FS_T_APPLY_CONTINUE")%>
							<%}	%>
						</td><td>						
							<label for="status">
								<%=resource.getString("FS_T_APPLICATION_STATUS")%>
							</label></td><td>
							<%if("1".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_NOT")%>
							<%}else if("2".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_ING")%>
							<%}else if("3".equals(apply.getStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_OPER_STATUS_FINISH")%>
							<%}%>
		
						</td></tr>
						<tr><td>						
							<label for="applyArea">
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA")%>
							</label></td><td>
							
							<%if("1".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_1")%>
							<%}else if("2".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_2")%>
							<%}else if("3".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_3")%>
							<%}else if("4".equals(apply.getApplyArea())){%>
								<%=resource.getString("FS_T_APPLICATION_APPLY_AREA_4")%>
							<%}%>
					</td><td>						
							<label for="feeStatus">
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS")%>
							</label></td><td>
							<%if("1".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_NOT")%>
							<%}else if("2".equals(apply.getFeeStatus())){%>
								<%=resource.getString("FS_T_APPLICATION_FEE_STATUS_FINISH")%>
							<%}%>
		
						</td></tr>
						<tr><td width = "15%">						
							<label for="memo">
								<%=resource.getString("FS_T_APPLICATION_MEMO")%>
							</label></td><td colspan = "3">
							<%=apply.getMemo()%>							
						</td></tr>
						</table>
					</form>	

				<div>
				</div>	
					
				</div>			
					<div class="buttonGroupRight">
					<div id="btnBack" ><%=resource.getString("FS_T_LIST")%></div>
				</div>	
			</div>
		</div>
		<div id="companyList" >
		
		</div>
		<script type="text/javascript"	>	
		//import scripts below to pages which display in right frame, for ajust the scroll height
		parent.scroll(0,0);
		parent.setFrameHeight(document.body.scrollHeight+200);
		</script>
	</body>
</html>